package com.atguigu.gmall.seckill.service;


import com.atguigu.gmall.model.activity.SeckillGoods;
import com.atguigu.gmall.model.order.OrderInfo;
import com.atguigu.gmall.model.to.SecKillQueueTo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 *
 */
public interface SeckillGoodsService extends IService<SeckillGoods> {
    //获取当前时间段的秒杀商品列表
    List<SeckillGoods> seckillListCurrDate();
    //获取指定日期的秒杀商品列表
    List<SeckillGoods> seckillListDescDate(String date);
    //获取秒杀商品详情
    SeckillGoods seckillDetail(Long skuId);

    void reduceStock(SecKillQueueTo secKillQueueTo);

    OrderInfo orderDetails(Long skuId);
}
